package com.xyf.sys.enums;

/**
 * @Author R-H
 * @Date 2024/5/61652
 * @Description
 */
public enum JTExpressGoodsTypeEnum {
    bm000001("文件"),
    bm000002( "数码产品"),
    bm000003( "生活用品"),
    bm000004("食品"),
    bm000005( "服饰"),
    bm000006("其他"),
    bm000007("生鲜类"),
    bm000008("易碎品"),
    bm000009("液体");

    private String name;

    JTExpressGoodsTypeEnum(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return super.toString();
    }

    public static String getValue(String name){
        for (JTExpressGoodsTypeEnum e : JTExpressGoodsTypeEnum.values()) {
            if (e.name.equals(name)){
                return e.toString();
            }
        }
        return bm000006.toString();
    }
}
